package com.lanlin.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.annotation.Order;

@Order(1)
@ConfigurationProperties(prefix = "auto.gather.locations")
public class Location {
        private double latitude;
        private double longitude;
 
        // Getter and Setter
        public double getLatitude() {
            return latitude;
        }
 
        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }
 
        public double getLongitude() {
            return longitude;
        }
 
        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        @Override
        public String toString() {
            return "Location{" +
                    "latitude=" + latitude +
                    ", longitude=" + longitude +
                    '}';
        }
    }